home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
button
/
buttons.frm
< prev
next >
Wrap
Text File
|
1995-09-06
|
10KB
|
331 lines
VERSION 2.00
Begin Form Buttons
Caption = "Buttons"
ClientHeight = 2535
ClientLeft = 2430
ClientTop = 1830
ClientWidth = 5340
Height = 2940
Icon = BUTTONS.FRX:0000
Left = 2370
LinkMode = 1 'Source
LinkTopic = "Form1"
ScaleHeight = 2535
ScaleWidth = 5340
Top = 1485
Width = 5460
Begin PictureBox ButtonGreen
BorderStyle = 0 'None
Height = 372
Left = 4320
Picture = BUTTONS.FRX:0302
ScaleHeight = 375
ScaleWidth = 855
TabIndex = 9
TabStop = 0 'False
Top = 3120
Visible = 0 'False
Width = 852
End
Begin PictureBox ButtonBlue
BorderStyle = 0 'None
Height = 372
Left = 3480
Picture = BUTTONS.FRX:07B4
ScaleHeight = 375
ScaleWidth = 855
TabIndex = 8
TabStop = 0 'False
Top = 3120
Visible = 0 'False
Width = 852
End
Begin PictureBox ButtonRed
BorderStyle = 0 'None
Height = 375
Left = 2640
Picture = BUTTONS.FRX:0C66
ScaleHeight = 375
ScaleWidth = 855
TabIndex = 7
TabStop = 0 'False
Top = 3135
Visible = 0 'False
Width = 855
End
Begin PictureBox ButtonDown
BorderStyle = 0 'None
Height = 372
Left = 1800
Picture = BUTTONS.FRX:1118
ScaleHeight = 375
ScaleWidth = 855
TabIndex = 6
TabStop = 0 'False
Top = 3120
Visible = 0 'False
Width = 852
End
Begin PictureBox ButtonUp
BorderStyle = 0 'None
Height = 372
Left = 120
Picture = BUTTONS.FRX:15CA
ScaleHeight = 375
ScaleWidth = 855
TabIndex = 4
TabStop = 0 'False
Top = 3120
Visible = 0 'False
Width = 852
End
Begin PictureBox ButtonGreenFocus
BorderStyle = 0 'None
Height = 372
Left = 4320
Picture = BUTTONS.FRX:1A7C
ScaleHeight = 375
ScaleWidth = 855
TabIndex = 16
TabStop = 0 'False
Top = 2760
Visible = 0 'False
Width = 852
End
Begin PictureBox ButtonBlueFocus
BorderStyle = 0 'None
Height = 372
Left = 3480
Picture = BUTTONS.FRX:1F2E
ScaleHeight = 375
ScaleWidth = 855
TabIndex = 17
TabStop = 0 'False
Top = 2760
Visible = 0 'False
Width = 852
End
Begin PictureBox ButtonRedFocus
BorderStyle = 0 'None
Height = 372
Left = 2640
Picture = BUTTONS.FRX:23E0
ScaleHeight = 375
ScaleWidth = 855
TabIndex = 18
TabStop = 0 'False
Top = 2760
Visible = 0 'False
Width = 852
End
Begin PictureBox ButtonDownFocus
BorderStyle = 0 'None
Height = 372
Left = 1800
Picture = BUTTONS.FRX:2892
ScaleHeight = 375
ScaleWidth = 855
TabIndex = 15
TabStop = 0 'False
Top = 2760
Visible = 0 'False
Width = 852
End
Begin PictureBox ButtonFlat
BorderStyle = 0 'None
Height = 372
Left = 960
Picture = BUTTONS.FRX:2D44
ScaleHeight = 375
ScaleWidth = 855
TabIndex = 5
TabStop = 0 'False
Top = 2760
Visible = 0 'False
Width = 852
End
Begin PictureBox ButtonUpFocus
BorderStyle = 0 'None
Height = 372
Left = 120
Picture = BUTTONS.FRX:31F6
ScaleHeight = 375
ScaleWidth = 855
TabIndex = 14
TabStop = 0 'False
Top = 2760
Visible = 0 'False
Width = 852
End
Begin PictureBox Button3
AutoSize = -1 'True
BorderStyle = 0 'None
Height = 450
Left = 240
Picture = BUTTONS.FRX:36A8
ScaleHeight = 450
ScaleWidth = 1050
TabIndex = 3
Top = 1920
Width = 1050
End
Begin PictureBox Button2
AutoSize = -1 'True
BorderStyle = 0 'None
Height = 450
Left = 240
Picture = BUTTONS.FRX:3B5A
ScaleHeight = 450
ScaleWidth = 1050
TabIndex = 2
Top = 1440
Width = 1050
End
Begin PictureBox Button1
AutoSize = -1 'True
BorderStyle = 0 'None
Height = 450
Left = 240
Picture = BUTTONS.FRX:400C
ScaleHeight = 450
ScaleWidth = 1050
TabIndex = 1
Top = 960
Width = 1050
End
Begin CommandButton Button0
Height = 450
Left = 240
TabIndex = 0
Top = 480
Width = 1050
End
Begin Label Label6
Caption = "Button 3 - Picture 3 State Button"
Height = 255
Left = 1770
TabIndex = 13
Top = 1950
Width = 3255
End
Begin Label Label5
Caption = "Button 2 - Picture 2 State Button"
Height = 255
Left = 1800
TabIndex = 12
Top = 1500
Width = 3255
End
Begin Label Label4
Caption = "Button 1 - Picture 1 State Button"
Height = 255
Left = 1800
TabIndex = 11
Top = 1050
Width = 3255
End
Begin Label Label3
Caption = "Button 0 - Real Button"
Height = 255
Left = 1800
TabIndex = 10
Top = 600
Width = 3255
End
End
Sub Button1_GotFocus ()
Button1.Picture = ButtonUpFocus.Picture
End Sub
Sub Button1_LostFocus ()
Button1.Picture = ButtonUp.Picture
End Sub
Sub Button1_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
Button1.Picture = ButtonFlat.Picture
End Sub
Sub Button1_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
Button1.Picture = ButtonUpFocus.Picture
End Sub
Sub Button2_Click ()
If Button2.Picture = ButtonUpFocus.Picture Then
Button2.Picture = ButtonDownFocus.Picture
Else
Button2.Picture = ButtonUpFocus.Picture
End If
End Sub
Sub Button2_GotFocus ()
If Button2.Picture = ButtonUp.Picture Then
Button2.Picture = ButtonUpFocus.Picture
ElseIf Button2.Picture = ButtonDown.Picture Then
B